package com.luntan.service;

import java.io.Serializable;

import com.luntan.dao.BaseDAO;

/**
 * 业务层基础抽象接口，定义一些公用方法
 * @author MaShiQiong
 * @date 2016-11-14 11:14:27
 */
public interface BaseService<T, K extends Serializable> {

    /**
     * 设置一个数据访问层
     * @param baseDAO 
     */
    public void setBaseDAO(BaseDAO<T, K> baseDAO);
    
    public T getEntity(Class<T> clazz, K k) throws Exception;
}
